home *** CD-ROM | disk | FTP | other *** search
- Path: news.wyoming.com!usenet
- From: dcromley@wyoming.com (Dave Cromley)
- Newsgroups: comp.lang.c++
- Subject: Re: Graphics with Borland Turbo c++ 4.5?
- Date: 8 Feb 1996 23:05:42 GMT
- Organization: wyoming.com LLC
- Message-ID: <4fdvk6$957@horn.wyoming.com>
- References: <31129FB3.2F0A@gatekeeper.vic.com> <823306694.29004@xetius.demon.co.uk>
- NNTP-Posting-Host: cys-cap-3.wyoming.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.2
-
- >>.. #include <graphics.h> gives me the error that BGI doesn't work
- >>under windows.
- >>.. I would really appreciate if someone would post a simple
- >>(really, really simple) program that does something like set
- >>the background color and draw a rectangle.
-
- Chris said:
- >To produce graphics in DOS is quite simple (Using the BGI libraries),
- >you simply initialise the graphics driver, and tell it what you want
- >to do. Within windows it is also relatively simple (Once you have
- >everything setup within the Application), you simply write everything
- >to the DC (Device context). But this in itself is an integral part
- >of windows, so its best to learn windows programming using C++.
-
- I just found out:
- Turbo C++ for windows does not have the command-line functions,
- including BCC, the DOS compiler. Therefore it (TCWIN) does not do
- graphics. BCC is mentioned in the online manuals, but I don't think
- it should be there. I guess you (we) need to downgrade to a DOS version
- or upgrade to BC++ (full version, which does have BCC).
-
- Chris: say more about DC (device context).
-
- Somebody: give a simple C++ program that draws a line under windows.
- Or explain what you need to do that.
-
- Dave C.
-
-